package com.justcan.demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {
    private SwipeListView listView;
    private DemoAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        listView = findViewById(R.id.listView);
        List<String> temps = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            temps.add("测试");
        }
        adapter = new DemoAdapter(this, temps);
        listView.setAdapter(adapter);
    }
}
